//-----------------------------------------------------------------------
// <copyright file="a_ArticleBase.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
	
using System;
using System.Data;
using System.ComponentModel;
using System.Collections;

namespace ThoiTrang.Entities
{
	[Serializable]
	public class a_ArticleBase
	{
		
		#region Variable Declarations
		private int				id = 0;
		private string				uTitle = string.Empty;
		private string				kTitle = string.Empty;
		private string				uAuthor = string.Empty;
		private string				uBody = string.Empty;
		private string				kBody = string.Empty;
		private int				mainCatID = 0;
		private int				subCatID = 0;
		private int				countryID = 0;
		private int				seasonID = 0;
		private int				fYear = 0;
		private DateTime				postDate = new DateTime(1900,1,1,0,0,0,0);
		private int				postBy_UserID = 0;
		private DateTime				publishDate = new DateTime(1900,1,1,0,0,0,0);
		private bool				publishStatus = false;
		private int				statPopularity = 0;
		private byte				statRating = 0;
		private bool				permission = false;
		private bool				isFeatured = false;
		private byte				featuredType = 0;
		private byte				layoutFormat = 0;
		private string				uniqueKeywords = string.Empty;
		private bool				isEdited = false;
		private string				brand = string.Empty;
		private int				groupID = 0;
		#endregion
		
		#region Constructors
		public a_ArticleBase() {}
		
		public a_ArticleBase (
			int id,
			string uTitle,
			string kTitle,
			string uAuthor,
			string uBody,
			string kBody,
			int mainCatID,
			int subCatID,
			int countryID,
			int seasonID,
			int fYear,
			DateTime postDate,
			int postBy_UserID,
			DateTime publishDate,
			bool publishStatus,
			int statPopularity,
			byte statRating,
			bool permission,
			bool isFeatured,
			byte featuredType,
			byte layoutFormat,
			string uniqueKeywords,
			bool isEdited,
			string brand,
			int groupID)
		
		{
			this.id = id;
			this.uTitle = uTitle;
			this.kTitle = kTitle;
			this.uAuthor = uAuthor;
			this.uBody = uBody;
			this.kBody = kBody;
			this.mainCatID = mainCatID;
			this.subCatID = subCatID;
			this.countryID = countryID;
			this.seasonID = seasonID;
			this.fYear = fYear;
			this.postDate = postDate;
			this.postBy_UserID = postBy_UserID;
			this.publishDate = publishDate;
			this.publishStatus = publishStatus;
			this.statPopularity = statPopularity;
			this.statRating = statRating;
			this.permission = permission;
			this.isFeatured = isFeatured;
			this.featuredType = featuredType;
			this.layoutFormat = layoutFormat;
			this.uniqueKeywords = uniqueKeywords;
			this.isEdited = isEdited;
			this.brand = brand;
			this.groupID = groupID;
		}
		#endregion
		
		#region Properties	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int ID
		{
			get { return id; }
			set { id = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string UTitle
		{
			get { return uTitle; }
			set { uTitle = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is varchar</value>
		public string KTitle
		{
			get { return kTitle; }
			set { kTitle = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string UAuthor
		{
			get { return uAuthor; }
			set { uAuthor = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is ntext</value>
		public string UBody
		{
			get { return uBody; }
			set { uBody = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is varchar</value>
		public string KBody
		{
			get { return kBody; }
			set { kBody = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int MainCatID
		{
			get { return mainCatID; }
			set { mainCatID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int SubCatID
		{
			get { return subCatID; }
			set { subCatID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int CountryID
		{
			get { return countryID; }
			set { countryID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int SeasonID
		{
			get { return seasonID; }
			set { seasonID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int FYear
		{
			get { return fYear; }
			set { fYear = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is datetime</value>
		public DateTime PostDate
		{
			get { return postDate; }
			set { postDate = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int PostBy_UserID
		{
			get { return postBy_UserID; }
			set { postBy_UserID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is datetime</value>
		public DateTime PublishDate
		{
			get { return publishDate; }
			set { publishDate = value; }
		}
	
		/// <summary>
		/// 	0:pending,1:approved
		/// </summary>
		/// <value>This type is bit</value>
		public bool PublishStatus
		{
			get { return publishStatus; }
			set { publishStatus = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int StatPopularity
		{
			get { return statPopularity; }
			set { statPopularity = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is tinyint</value>
		public byte StatRating
		{
			get { return statRating; }
			set { statRating = value; }
		}
	
		/// <summary>
		/// 	0: public,1: private (require login)
		/// </summary>
		/// <value>This type is bit</value>
		public bool Permission
		{
			get { return permission; }
			set { permission = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bit</value>
		public bool IsFeatured
		{
			get { return isFeatured; }
			set { isFeatured = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is tinyint</value>
		public byte FeaturedType
		{
			get { return featuredType; }
			set { featuredType = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is tinyint</value>
		public byte LayoutFormat
		{
			get { return layoutFormat; }
			set { layoutFormat = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is varchar</value>
		public string UniqueKeywords
		{
			get { return uniqueKeywords; }
			set { uniqueKeywords = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bit</value>
		public bool IsEdited
		{
			get { return isEdited; }
			set { isEdited = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Brand
		{
			get { return brand; }
			set { brand = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int GroupID
		{
			get { return groupID; }
			set { groupID = value; }
		}
	
		
		#endregion
	}//End Class
	
	public enum a_ArticleColumns
	{
		ID,
		UTitle,
		KTitle,
		UAuthor,
		UBody,
		KBody,
		MainCatID,
		SubCatID,
		CountryID,
		SeasonID,
		FYear,
		PostDate,
		PostBy_UserID,
		PublishDate,
		PublishStatus,
		StatPopularity,
		StatRating,
		Permission,
		IsFeatured,
		FeaturedType,
		LayoutFormat,
		UniqueKeywords,
		IsEdited,
		Brand,
		GroupID
	}//End enum
}